package com.example.service.webhook.business.email.api;

import com.example.service.webhook.business.email.dto.EmailBillList;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Modified by liyang on 20171019 接口升级
 */
public interface EmailApi {

    /**
     * 获取全量账单根据taskId
     *
     */
   /* @GET("/email/v2/bills")
    Call<EmailBillList> getBillsByTaskId(@Query("task_id") String taskId);*/

    @GET("/email/v2/alldata")
    Call<EmailBillList> getEmailBillAllData(@Query("task_id") String taskId);

//    https://api.51datakey.com/email/v2/alldata?task_id={task_id}

    //Call<EmailBillList> getBillsByTaskId(@Query("email_id") String taskId);

//    @GET("/email/v1/bills/{id}")
//    Call<CreditBillQueryRsp> getBillById(@Path("id") String billId);

    /**
     * 获取消费记录
     * 说明：20171019接口升级，原： @GET("/email/v1/bills/{id}/expense-records")
     *//*
    @GET("/email/v2/bills/{bill_id}/expense-records")
    Call<EmailBillShoppingSheetList> getBillShoppingSheets(@Path("bill_id") String billId,@Query("page") Integer page,@Query("size") Integer size);


    *//**
     * 获取分期记录
     * @param billId
     * @param page
     * @param size
     * @return
     * 说明：20171019接口升级，原：@GET("/email/v1/bills/{id}/installment-records")
     *//*
    @GET("/email/v2/bills/{bill_id}/installment-records")
    Call<EmailBillInstallmentList> getBillInstallments(@Path("bill_id") String billId,@Query("page") Integer page,@Query("size") Integer size);
*/
}
